Skip to content

chore: implement phase 1 - #2779

Draft
Tofel wants to merge 1 commit into
dx-5122-alerts-assertion-p0from
dx-5122-alerts-assertion-p1
Draft

chore: implement phase 1#2779
Tofel wants to merge 1 commit into
dx-5122-alerts-assertion-p0from
dx-5122-alerts-assertion-p1

Conversation

@Tofel

@Tofel Tofel commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Strict parsers for the Alertmanager state (H1) and ruler endpoints, a Prometheus-style duration parser, and fixtures sliced from live Grafana 13.1.0 payloads covering required, optional, and must-error cases — including the "Normal (NoData)"/"Normal (Error)" composite reason states seen in production (not in the original plan).

Review focus: parse_state.go, parse_ruler.go (strictness/error cases), and duration.go.

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

📊 API Diff Results

No changes detected for module github.com/smartcontractkit/chainlink-testing-framework/grafana-alertcheck

View full report

@Tofel
Tofel force-pushed the dx-5122-alerts-assertion-p1 branch from b406d5a to d4124cb Compare September 1, 2026 11:25
}

var forStr string
if err := opt(m, "for", &forStr); err != nil {

@Tofel Tofel Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is optional, because if for is missing it means it is equal to 0 in Grafana, which means that alert fires immediately.

@Tofel
Tofel force-pushed the dx-5122-alerts-assertion-p1 branch from d4124cb to 96000d4 Compare September 2, 2026 09:45
Strict parsers for the state and ruler endpoints (H1), a Prometheus-style
duration parser, and fixtures sliced from real Grafana 13.1.0 payloads
covering every required/optional-field and must-error case, including the
"Normal (NoData)"/"Normal (Error)" composite reason states found live in the
current fleet capture (not in the original plan's vocabulary).
@Tofel
Tofel force-pushed the dx-5122-alerts-assertion-p1 branch from 96000d4 to 730e632 Compare September 4, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant